#ifndef SHORTCUTWIDGET_H
#define SHORTCUTWIDGET_H

#include <QWidget>

namespace Ui {
	class ShortcutWidget;
}

class ShortcutWidget : public QWidget
{
		Q_OBJECT

	public:

		explicit ShortcutWidget(QWidget *parent = 0);
		~ShortcutWidget();

		QKeySequence defaultSequence() const;
		QKeySequence customSequence() const;

		QKeySequence currentSequence() const;

	public slots:

		void setSequences(const QKeySequence& defaultSequence, const QKeySequence& currentSequence);

	private slots:

		void resetCustomShortcut();
		void customShortcutChanged();
		void setupIcons();

	private:

		Ui::ShortcutWidget *ui;
		QKeySequence _defaultSequence;
};

#endif // SHORTCUTWIDGET_H
